package com.wl.service;

import com.wl.domain.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Feign接口
 */
@RequestMapping("/user")
@FeignClient(value = "user-service",fallbackFactory = UserServiceFallbackFactory.class)
public interface UserService{
    @GetMapping("/userById/{id}")
    User userById(@PathVariable("id") Long id);
}
